package simple.framework.util;

import java.util.regex.*;

public class filter
{
  public static String striptags(String argString)
  {
    Boolean tState = true;
    String tString = argString;
    String tRegexString = "<(.[^>]*)>";
    while (tState)
    {
      tState = false;
      String tvalue1, tvalue2;
      Pattern tPattern = Pattern.compile(tRegexString);
      Matcher tMatcher = tPattern.matcher(tString);
      while (tMatcher.find())
      {
        tState = true;
        tvalue1 = tMatcher.group();
        tvalue2 = "";
        tString = tString.replace(tvalue1, tvalue2);
      }
    }
    return tString;
  }
}